package hos.permission;

import android.content.Intent;

import androidx.annotation.NonNull;

import java.util.List;

/**
 * <p>Title: OnPermissionResultListener </p>
 * <p>Description:  </p>
 * <p>Company: www.mapuni.com </p>
 *
 * @author : 蔡俊峰
 * @version : 1.0
 * @date : 2023/9/20 22:40
 */
public interface OnPermissionResultListener {

    public interface onSuccessListener {
        void onSuccess();
    }

    public interface onSuccessFulListener {
        void onSuccess(PermissionRequest permissionRequest);
    }

    public interface onCancelListener {
        void onCancel();
    }

    public interface onRefusedListener {
        void onRefused(@NonNull List<String> permissions);
    }

    public interface onRefusedDialogListener {
        void onRefusedDialog(@NonNull PermissionRequest delegate, @NonNull List<String> permissions);
    }

    public interface onRequestListener {
        void onRequest(@NonNull List<String> permissions);
    }

    public interface onRequestDialogListener {
        void onRequestDialog(@NonNull PermissionRequest delegate, @NonNull List<String> permissions);
    }

    public interface OnStartActivityListener {
        void onStartActivity(Intent intent, int requestCode);
    }
}
